// Project:
// File: SimpleIO.java
// Authors: rlb
// Date Started: 11.19.07
// Progress:
// Date Completed: unknown
// Notes:
// TODO: file will be extended over time

package csa;

import java.util.Scanner;
import gfs.DebugLog;

public class SimpleIO
    {
    private SimpleIO()
        {
        DebugLog.Assert(false,
            "Instantiation of SimpleIO is not supported at this time.");
        }
    public static int getInt()
        {
        return inStream.nextInt();
        }
    public static int getInt(String message)
        {
        System.out.print(message);
        System.out.print(prompt);
        return getInt();
        }
    public static double getReal()
        {
        return inStream.nextDouble();
        }
    public static double getReal(String message)
        {
        System.out.print(message);
        System.out.print(prompt);
        return getReal();
        }
    public static String getString(String message)
        {
        System.out.print(message);
        System.out.print(prompt);
        return inStream.next();
        }
    // DATA MEMBERS
    private static Scanner inStream = new Scanner(System.in);
    private static String prompt = " >>> ";
    } // class SimpleIO
